package com.peace.hospital.entity.outpatientdept;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * <p>
 * 挂号信息表
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Patientinformation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 挂号编号
     */
    @TableId(value = "patid", type = IdType.AUTO)
    private Integer patid;

    /**
     * 员工编号
     */
    private Integer staid;

    /**
     * 病人id
     */
    private Integer pid;
    /**
     * 收费类型ID*/
    private Integer parchargeitemid;

    /**
     * 挂号日期
     */
    private Date patrdate;

    /**
     * 收费数据库名称
     */
    private String patdbsource;

    public Integer getParchargeitemid() {
        return parchargeitemid;
    }

    public void setParchargeitemid(Integer parchargeitemid) {
        this.parchargeitemid = parchargeitemid;
    }

    @Override
    public String toString() {
        return "Patientinformation{" +
                "patid=" + patid +
                ", staid=" + staid +
                ", pid=" + pid +
                ", parchargeitemid=" + parchargeitemid +
                ", patrdate=" + patrdate +
                ", patdbsource='" + patdbsource + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getPatid() {
        return patid;
    }

    public void setPatid(Integer patid) {
        this.patid = patid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getPatrdate() {
        return patrdate;
    }

    public void setPatrdate(Date patrdate) {
        this.patrdate = patrdate;
    }

    public String getPatdbsource() {
        return patdbsource;
    }

    public void setPatdbsource(String patdbsource) {
        this.patdbsource = patdbsource;
    }
}
